package com.projectcost.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.projectcost.common.annotation.Excel;
import com.projectcost.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 项目管理对象 project_management
 *
 * @author projectcost
 * @date 2024-11-17
 */
public class ProjectManagement extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自动递增
     */
    private Long id;

    /**
     * 项目名称，不允许为空
     */
    @Excel(name = "项目名称，不允许为空")
    private String projectName;

    /**
     * 项目状态
     */
    @Excel(name = "项目状态")
    private String status;

    /**
     * 项目编号
     */
    @Excel(name = "项目编号")
    private String projectCode;

    /**
     * 预期工期，单位可以是天
     */
    @Excel(name = "预期工期，单位可以是天")
    private Long expectedDuration;

    /**
     * 评估金额
     */
    @Excel(name = "评估金额")
    private BigDecimal estimatedCost;

    /**
     * 创建时间，默认值为当前时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间，默认值为当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 更新时间，默认值为当前时间，并且在记录更新时自动更新为当前时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间，默认值为当前时间，并且在记录更新时自动更新为当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    @Excel(name = "备注")
    private String bat;

    private String requirement;

    public String getRequirement() {
        return requirement;
    }

    public void setRequirement(String requirement) {
        this.requirement = requirement;
    }

    public String getBat() {
        return bat;
    }

    public void setBat(String bat) {
        this.bat = bat;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public Long getExpectedDuration() {
        return expectedDuration;
    }

    public void setExpectedDuration(Long expectedDuration) {
        this.expectedDuration = expectedDuration;
    }

    public BigDecimal getEstimatedCost() {
        return estimatedCost;
    }

    public void setEstimatedCost(BigDecimal estimatedCost) {
        this.estimatedCost = estimatedCost;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("projectName", getProjectName())
                .append("status", getStatus())
                .append("projectCode", getProjectCode())
                .append("expectedDuration", getExpectedDuration())
                .append("estimatedCost", getEstimatedCost())
                .append("createdTime", getCreatedTime())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
